package com.google.code.chaotic.updates;

import java.util.logging.Logger;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;
import org.restlet.service.MetadataService;

public class BackTierUpdatesApp extends Application {

	private static Logger logger = Logger.getLogger(//
			BackTierUpdatesApp.class.getName());

	//

	/**
	 * Creates a root Restlet that will receive all incoming calls.
	 */
	@Override
	public Restlet createInboundRoot() {
		// Create a router Restlet that routes each call to a
		// new instance of HelloWorldResource.
		Router router = new Router(getContext());

		// Defines only one route
		router.attach("/start", BackTierStarterResourceImpl.class);
		router.attach("/list", BackTierUpdatesResourceImpl.class);

		return router;
	}
}